<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>教师个人信息</title>
</head>
<body>
<h1>教师个人信息</h1>
<form action="${pageContext.request.contextPath}/teacher/info/update" method="post">
    <input type="hidden" name="id" value="${teacher.id}">
    <label for="name">姓名:</label>
    <input type="text" id="name" name="name" value="${teacher.name}"><br>
    <label for="email">邮箱:</label>
    <input type="email" id="email" name="email" value="${teacher.email}"><br>
    <label for="phone">联系方式:</label>
    <input type="text" id="phone" name="phone" value="${teacher.phone}"><br>
    <label for="department">部门:</label>
    <input type="text" id="department" name="department" value="${teacher.department}"><br>
    <label for="title">职称:</label>
    <input type="text" id="title" name="title" value="${teacher.title}"><br>
    <input type="submit" value="保存修改">
</form>
<h2>修改密码</h2>
<form action="${pageContext.request.contextPath}/teacher/password/update" method="post">
    <label for="newPassword">新密码:</label>
    <input type="password" id="newPassword" name="newPassword"><br>
    <input type="submit" value="修改密码">
</form>
</body>
</html>